var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.curNodeEventEnd(true);
            cm.setInGameDirectionMode(true, true);
            cm.setStandAloneMode(true);
            cm.effect_Direction("Effect/Direction4.img/cannonshooter/Scene00");
            cm.effect_Direction("Effect/Direction4.img/cannonshooter/out00");
            cm.forceCompleteQuest(62417);
            cm.forceStartQuest(9571, "0");
            cm.forceStartQuest(31190, "0");
            cm.forceStartQuest(42102, "0");
            cm.forceStartQuest(7621, "");
            cm.dispose()
        }
    }
};